/*
 * @Description:
 * @Author: Zzt
 * @Date: 2023-01-19 14:48:24
 * @LastEditTime: 2023-01-19 15:35:13
 */
import UFANav, { IUFAChangeCallback } from '@/components/UFANav';
import { useReceiveAndSendCollectionContext } from '../contexts/ReceiveAndSendCollectionContext';

const NavSidebar = () => {
  const { setSelectFondId, setSelectAT } = useReceiveAndSendCollectionContext();
  const navChange = ({ fondId, fondItem, atId, atItem }: IUFAChangeCallback) => {
    console.log('change', { fondId, fondItem, atId, atItem });
    setSelectFondId(fondId);
    setSelectAT(atItem);
    // setSelectATId(atId);
  };
  return (
    <>
      <UFANav type={2} onChange={navChange} />
    </>
  );
};
export default NavSidebar;
